IsDate

Definition:

IsDate(string)

 

Description:

Check whether a string contains a date value.

 

Platforms:

All

 

Parameters:

date - required

String containing the date or date and time.

Supported formats for this parameter are the same as those supported by VBScript DateTime objects.

 

Returns:

0

The string doesn't contain the equivalent of a date.

 

1

The string does contain the equivalent of a date.

 

Notes:

If you want to use the current date and time, you can use the Now Method to obtain this in a suitable format for use within this Method.